package cn.livingCloud.entity.core;

/**
 * 案件的状态
 * Created by DingJie on 2016/6/2.
 */
public enum CaseStatus {
    NO_HANDLE("未处理"), CANCELLED("已作废"), FINISH("已完成"), REPORT("已上报"), PENDING("待审核"), ASSIGNMENT("已分派"), LOCK("锁定");
    private String label;

    CaseStatus() {
    }

    CaseStatus(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public boolean isNoHandle() {
        return NO_HANDLE.equals(this);
    }

    public boolean isCancelled() {
        return CANCELLED.equals(this);
    }

    public boolean isFinish() {
        return FINISH.equals(this);
    }

    public boolean isReport() {
        return REPORT.equals(this);
    }

    public boolean isAssignment() {
        return ASSIGNMENT.equals(this);
    }

    public boolean isPending() {
        return PENDING.equals(this);
    }

    public boolean isLock() {
        return LOCK.equals(this);
    }

}
